package com.forum.service;

import com.forum.pojo.User;

import java.util.List;

public interface UserService {
//添加用户
    public int addUser(User user);
//更新用户信息
    public int updateUser(User user);
//通过账号查找用户
    public User findUserById(String userId);
//通过用户名查找用户
    public User findUserByUsername(String username);
//查找所有用户
    public List<User> findAllUser();
//用户登录
    public User UserLogin(User user);
    //
    public int deleteUser(String userID);


}
